package com.m1.tzolkin.model.util.card;

public abstract class BuyableCard<C> implements IBuyableCard<C> {
	
	// ATTRIBUTS
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -8106571124752921317L;
	private final C cost;
	
	// CONSTRUCTEUR
	
	public BuyableCard(C c) {
		if (c == null) {
			throw new IllegalArgumentException();
		}
		cost = c;
	}
	
	// REQUETES

	@Override
	public C getCost() {
		return cost;
	}
	
	@Override
	public abstract String getName();

}
